projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e874d5b
)
cm-t35: implement board specific card detect check
author
Nikita Kiryanov
<
[email protected]
>
Mon, 3 Dec 2012 02:19:45 +0000
(
02:19
+0000)
committer
Tom Rini
<
[email protected]
>
Fri, 8 Mar 2013 21:41:13 +0000
(16:41 -0500)
Implement a card detection check for cm-t35.
Signed-off-by: Nikita Kiryanov <
[email protected]
>
Signed-off-by: Igor Grinberg <
[email protected]
>
board/cm_t35/cm_t35.c
patch
|
blob
|
history
diff --git
a/board/cm_t35/cm_t35.c
b/board/cm_t35/cm_t35.c
index 89e0fd30a8f4d174f1e4c266114afc950c70d483..dfd91e78c8c1d8359d7a4bd5351b1327c747e40a 100644
(file)
--- a/
board/cm_t35/cm_t35.c
+++ b/
board/cm_t35/cm_t35.c
@@
-33,6
+33,7
@@
#include <net.h>
#include <i2c.h>
#include <usb.h>
+#include <mmc.h>
#include <twl4030.h>
#include <linux/compiler.h>
@@
-377,6
+378,16
@@
void set_muxconf_regs(void)
}
#ifdef CONFIG_GENERIC_MMC
+int board_mmc_getcd(struct mmc *mmc)
+{
+ u8 val;
+
+ if (twl4030_i2c_read_u8(TWL4030_CHIP_GPIO, &val, TWL4030_BASEADD_GPIO))
+ return -1;
+
+ return !(val & 1);
+}
+
int board_mmc_init(bd_t *bis)
{
return omap_mmc_init(0, 0, 0, -1);